<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/18/018
 * Time: 14:57
 */

namespace app\common\validate;


class BrandValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'logo' => 'require',
        'slogan' => 'require',
        'recommend' => 'require|in:0,1',
    ];
    protected $message = [
        'name.require' => '请输入品牌名称',
        'logo.require' => '请上传品牌logo',
        'slogan.require' => '请输入品牌广告语',
        'recommend.require' => '请选择是否推荐',
        'recommend.in' => '推荐参数错误',
    ];
}